<?php

// +----------------------------------------------------------------------
// |  系统配置
// +----------------------------------------------------------------------

use think\helper\Str;

return [

    // +-----------------------------------------------------
    // | 独立版配置 【脱离微擎时打开注释】
    // +-----------------------------------------------------

    [
        'type'  => 'account',
        'key'   => 'appid',
        'value' => '',
        'note'  => '公众号appid【独立版】',
    ],
    [
        'type'  => 'account',
        'key'   => 'secret',
        'value' => '',
        'note'  => '公众号开发者密钥【独立版】',
    ],

    // +-----------------------------------------------------
    // | 基本配置
    // +-----------------------------------------------------

    [
        'type'  => 'merchant',
        'key'   => 'apply_name',
        'value' => '',
        'note'  => '应用名称,用于首页站点标题',
    ],

    // +-----------------------------------------------------
    // | 微信商户号
    // +-----------------------------------------------------

    [
        'type'  => 'merchant',
        'key'   => 'mch_id',
        'value' => '',
        'note'  => '微信商户号ID',
    ],
    [
        'type'  => 'merchant',
        'key'   => 'mch_key',
        'value' => '',
        'note'  => '微信商户号API密钥',
    ],
    [
        'type'  => 'merchant',
        'key'   => 'cert_path',
        'value' => '',
        'note'  => '微信商户号支付证书',
    ],
    [
        'type'  => 'merchant',
        'key'   => 'key_path',
        'value' => '',
        'note'  => '微信商户号支付证书',
    ],

    // +-----------------------------------------------------
    // | 客服消息
    // +-----------------------------------------------------

    [
        'type'  => 'message',
        'key'   => 'msg_token',
        'value' => Str::random(25),
        'note'  => '消息推送Token令牌',
    ],


    // +-----------------------------------------------------
    // | 在线客服
    // +-----------------------------------------------------

    [
        'type'      => 'customer_service',
        'key'       => 'customer_service_qrcode',
        'value'     => 'customer_service_qrcode.jpg',
        'note'      => '在线客服二维码',
        'img_scene' => 1,
    ],
    [
        'type'      => 'customer_service',
        'key'       => 'customer_service_text',
        'value'     =>  [
            'note'        => '无法充值？充值不到账？工作时间：联系客服处理即可, 非工作时间：请添加或留言，隔天工作会处理！',
            'title'       => '24小时在线客服',
            'subtitle'    => '人工充值9.9折',
            'online_time' => '客服在线时间: 工作日9:00 - 18:30',
        ],
        'note'      => '在线客服相关文字配置',
    ],
];
